package cn.demoncat.util.mysql.entity;

/**
 * Mysql字段
 *
 * @author 延晓磊
 * @since 2020年10月10日
 */
public class MysqlColumn {

    // 名称
    private String name;
    // 注释
    private String comment;
    // 类型-带长度
    private String fullType;
    // 类型-简
    private String type;
    // 默认值
    private String value;
    // 可否为空：YES/NO
    private String isNullable;
    // 索引主键：PRI,MUL,UNI
    private String keyType;
    // 字符长度
    private String maxLength;

    public MysqlColumn(String name, String comment, String fullType, String type, String value, String isNullable, String keyType, String maxLength) {
        this.name = name;
        this.comment = comment;
        this.fullType = fullType;
        this.type = type;
        this.value = value;
        this.isNullable = isNullable;
        this.keyType = keyType;
        this.maxLength = maxLength;
    }

    public MysqlColumn() {
        super();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getFullType() {
        return fullType;
    }

    public void setFullType(String fullType) {
        this.fullType = fullType;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getIsNullable() {
        return isNullable;
    }

    public void setIsNullable(String isNullable) {
        this.isNullable = isNullable;
    }

    public String getKeyType() {
        return keyType;
    }

    public void setKeyType(String keyType) {
        this.keyType = keyType;
    }

    public String getMaxLength() {
        return maxLength;
    }

    public void setMaxLength(String maxLength) {
        this.maxLength = maxLength;
    }
}
